package com.aqielife.base.injection.component

import android.app.Activity
import android.content.Context
import com.aqielife.base.injection.ActivityScope
import com.aqielife.base.injection.module.ActivityModule
import com.aqielife.base.injection.module.LifecycleProviderModule
import com.trello.rxlifecycle.LifecycleProvider
import dagger.Component

/*
    Activity级别Component
 */
@ActivityScope
@Component(dependencies = [AppComponent::class],modules = [ActivityModule::class, LifecycleProviderModule::class])
interface ActivityComponent {

    fun activity(): Activity
    fun context(): Context
    fun lifecycleProvider(): LifecycleProvider<*>
}
